Xceed DataGrid for Silverlight Documentation
Migrating from Xceed DataGrid for WPF

Unfortunately, there is no way to migrate directly from Xceed DataGrid for WPF to Xceed DataGrid for Silverlight;  however, every attempt was made to keep a familiar API and to diminish the learning curve. This topic was designed to give you a quick reference guide to allow you to get familiarized with the differences. 

One of the most notable difference between Xceed DataGrid for Silverlight and Xceed DataGrid for WPF is the absence of a custom DataGridCollectionView, which is the hub through which all data manipulations occur in Xceed DataGrid for WPF. In Xceed DataGrid for Silverlight, most of these manipulations are done at the datagrid level. For example, in Xceed DataGrid for WPF, groups were defined on the DataGridCollectionView through its GroupDescriptions collection. The technique is the same in Xceed DataGrid for Silverlight; however, the GroupDescriptions collection is defined on the DataGridControl class, which is the core class of Xceed DataGrid for Silverlight.

The following tables provide a list of the most commonly used members in Xceed DataGrid for WPF and their Xceed DataGrid for Silverlight counterparts.

Table 1: DataGridCollectionView[Source] classes

Xceed DataGrid for WPF Xceed DataGrid for Silverlight
AutoCreateDetailDescriptions N/A
AutoCreateForeignKeyDescriptions N/A
AutoCreateItemProperties DataGridControl.AutoCreateColumns
AutoFilterMode N/A
DetailDescriptions N/A
Filter DataGridControl Filter event
GroupDescriptions DataGridControl.GroupDescriptions
SortDescriptions DataGridControl.SortDescriptions
StatFunctions DataGridControl.StatFunctions
BeginningEdit DataGridControl.SourceItemEditBeginning
CancelingEdit DataGridControl.SourceItemEditCanceling
CancelingNewItem N/A
CommittingEdit DataGridControl.SourceItemEditEnding
CommittingNewItem N/A
CreatingNewItem DataGridControl.CreatingNewSourceItem
EditBegun DataGridControl.SourceItemEditBegun
EditCanceled DataGridControl.SourceItemEditCanceled
EditCommitted DataGridControl.SourceItemEditEnded
InitializingNewItem DataGridControl.CreatingNewSourceItem
DataGridControl.NewSourceItemCreated
ItemRemoved N/A
NewItemCanceled N/A
NewItemCommitted DataGridControl.SourceItemEditEnded
NewItemCreated DataGridControl.NewSourceItemCreated
RemovingItem N/A

Table 2: DataGridControl class

Xceed DataGrid for WPF Xceed DataGrid for Silverlight
AutoCreateColumns AutoCreateColumns
AutoCreateDetailConfigurations N/A
AutoCreateForeignKeyConfigurations N/A
CellEditorDisplayConditions CellEditorDisplayConditions
CellErrorStyle N/A
Columns Columns
CurrentColumn CurrentColumn
CurrentItem CurrentItem
DetailConfigurations N/A
EditTriggers EditTriggers
GroupConfigurationSelector GroupConfigurationSelector
GroupLevelDescriptions GroupDescriptions
NavigationBehavior N/A
SelectedCellRanges N/A
SelectedIndex N/A
SelectedItem BeginGetSelectedItems/EndGetSelectedItems
SelectedItem
SelectedItemRanges SelectedRanges
SelectedItems BeginGetSelectedItems/EndGetSelectedItems
SelectedItems
SelectionMode SelectionMode
SelectionUnit N/A
UpdateSourceTrigger UpdateSourceTrigger
View N/A
VisibleColumns N/A
BeginEdit BeginEdit
BringItemIntoView BringItemIntoView
BringColumnIntoView
CancelEdit CancelEdit
CollapseGroup CollapseGroup
EndEdit EndEdit
ExpandGroup ExpandGroup
ExportTo* ExcelExporter and CsvExporter classes
GetDataGridContext DataGridContext
GetParentDataGridControl N/A
GetParentGroupFromItem N/A
LoadUserSettings N/A
Print N/A
SaveUserSettings N/A
ToggleGroupExpansion ToggleGroupExpansion
CurrentChanged PropertyChanged
CurrentChanging N/A
DeletingSelectedItems N/A
InitializingInsertionRow CreatingNewSourceItem
NewSourceItemCreated
SelectionChanged SelectionChanged
SelectionChanging N/A

Views and Themes

Unlike its WPF counterpart, Xceed DataGrid for Silverlight currently offers only one view, which is the equivalent of the Tableflow view provided by Xceed DataGrid for WPF. As a result, there is no property to allow the view to be changed; however, there are multiple themes that can be applied to the grid by using one of the theme resource dictionaries.

For more information and examples about the theme resource dictionaries, refer to the Styles and Themes topic.

Send Feedback